package com.skyline.wo.model;

import java.io.Serializable;

import com.skyline.base.model.Resource;
import com.skyline.base.model.TokenValidatable;
import com.skyline.common.cache.Cachable;

public class Video extends Resource implements Serializable, TokenValidatable, Cachable {

	private static final long serialVersionUID = -6220973207083491817L;

	private String title;// 视频标题

	private String thumbnail;// 视频缩略图

	private String summary;// 视频简介

	private String time;// 视频时长

	private String source;// 视频来源

	private String pageUrl;// 视频页面地址

	private String flashUrl;// 视频FLASH地址

	private String htmlCode;// 视频HTML代码
	
	//private String digest;

	private String submitToken;

	public String getTitle() {
		if (title == null) {
			return "";
		} else {
			return title;
		}
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getThumbnail() {
		if (thumbnail == null) {
			return "";
		} else {
			return thumbnail;
		}
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getSummary() {
		if (null == summary) {
			return "";
		} else {
			return summary;
		}
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getTime() {
		if (time == null) {
			return "";
		} else {
			return time;
		}
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getSource() {
		if (source == null) {
			return "";
		} else {
			return source;
		}
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getPageUrl() {
		if (null == pageUrl) {
			return "";
		} else {
			return pageUrl;
		}
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public String getFlashUrl() {
		if (flashUrl == null) {
			return "";
		} else {
			return flashUrl;
		}
	}

	public void setFlashUrl(String flashUrl) {
		this.flashUrl = flashUrl;
	}

	public String getHtmlCode() {
		if (htmlCode == null) {
			return "";
		} else {
			return htmlCode;
		}
	}

	public void setHtmlCode(String htmlCode) {
		this.htmlCode = htmlCode;
	}
	

	@Override
	public String getFkId() {
		return this.ownerId.toString();
	}

	@Override
	public String getSubmitToken() {
		return this.submitToken;
	}

	@Override
	public void setSubmitToken(String submitToken) {
		this.submitToken = submitToken;
	}

}
